package com.hellobike.haxing.web.system;

import com.hellobike.haxing.response.system.SystemVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.hellobike.haxing.order.result.Result;
import static org.springframework.web.bind.annotation.RequestMethod.POST;

@Api(tags = "系统配置")
@RestController
@RequestMapping(value = "/system")
public class SystemController {
    @ApiOperation("返回系统设置数据")
    @RequestMapping(value = "/config", method = {POST, RequestMethod.GET})
    public Result<SystemVO> config() {
        SystemVO systemVO = new SystemVO();
        Result<SystemVO> result = new Result<>();
        result.success("").setData(systemVO);
        return result;
    }
}
